<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/serch.css" />
		<script type="text/javascript" src="js/zepto.min.js"></script>
		<script type="text/javascript" src="js/touch.js"></script>
	</head>

	<body>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		
		<div class="mui-content">
		    <div class="mui-input-row mui-search">
	    		<input type="search" class="mui-input-clear mui-input-speech" placeholder="目的/景点/关键词">
	    	</div>
			<nav id="btn">
		        <span id="btn1">推荐</span>
		        <span id="btn2">国内城市</span>
		        <span id="btn3">海外港台</span>
		    </nav>
		    <div id="tui">
		    	<!--<div class="dang">
			    	<span>当前</span>
			    	<div class="qian">
			    		<button>北京</button>
			    		<button>我的位置</button>
			    	</div>
			    </div>
			    <div class="history">
			    	<span>搜索历史</span>
			    	<div class="wang">
			    		<button>王府井</button>
			    		<button>首都机场</button>
			    	</div>
			    </div>-->
		    </div>
		    
		    
		</div>
		<script>
			 
		    	str='<div class="dang">'+
			    	'<span>当前</span>'+
			    	'<div class="qian">'+
			    		'<button>北京</button>'+
			    		'<button>我的位置</button>'+
			    	'</div>'+
			    '</div>'+
			    '<div class="history">'+
			    	'<span>搜索历史</span>'+
			    	'<div class="wang">'+
			    		'<button>王府井</button>'+
			    		'<button>首都机场</button>'+
			    	'</div>'+
			   ' </div>';
		    
					$('#tui').append(str);
			$('#btn').on('tap','span',function(e){
				e.preventDefault();
				$(this).css('color','#000').siblings().css('color','#999');
			$('#tui').html('');
				
				if(e.target.getAttribute('id')=='btn1'){
					str='<div class="dang">'+
			    	'<span>当前</span>'+
			    	'<div class="qian">'+
			    		'<button>北京</button>'+
			    		'<button>我的位置</button>'+
			    	'</div>'+
			    '</div>'+
			    '<div class="history">'+
			    	'<span>搜索历史</span>'+
			    	'<div class="wang">'+
			    		'<button>王府井</button>'+
			    		'<button>首都机场</button>'+
			    	'</div>'+
			   ' </div>'
			   $('#tui').append(str);
				}else if(e.target.getAttribute('id')=='btn2'){
					str='<div class="dang">'+
			    	'<span>热门城市</span>'+
			    	'<div class="qian">'+
			    		'<button>三亚</button>'+
			    		'<button>杭州</button>'+
			    		'<button>青岛</button>'+
			    		'<button>南京</button>'+
			    		'<button>西城</button>'+
			    	'</div>'+
			    '</div>'
			    
			   $('#tui').append(str);
				}else if(e.target.getAttribute('id')=='btn3'){
					str='<div class="dang">'+
			    	'<span>热门城市</span>'+
			    	'<div class="qian">'+
			    		'<button>巴厘岛</button>'+
			    		'<button>花莲</button>'+
			    		'<button>京都</button>'+
			    		'<button>曼谷</button>'+
			    		'<button>首尔</button>'+
			    	'</div>'+
			    '</div>'
			   $('#tui').append(str);
				}
			})
		</script>
	</body>

</html>